<template>
  <div class="numberBox">
    <div class="mui-numbox" data-numbox-min="1" data-numbox-max="9">
      <button class="mui-btn mui-btn-numbox-minus" type="button">-</button>
      <input id="test" class="mui-input-numbox" type="number" value="1" @change='countChange' ref='number'/>
      <button class="mui-btn mui-btn-numbox-plus" type="button">+</button>
    </div>
  </div>
</template>
<script>

export default {
  data() {
    return {};
  },
  mounted() {
     
    this.mui(".mui-numbox").numbox();
  },
  methods:{
    countChange(){
      console.log(this.$refs.number.value)
      this.$emit('getCount',this.$refs.number.value)
    }
  }
};
</script>
<style scoped>
.numberBox {
  display: inline-block;
}
</style>